﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;//导入命名空间
using System.Linq;
using System.Web;

namespace Cinema_Ticketing_System.Models.ViewModel
{
    /// <summary>
    /// 创捷用户视图模型
    /// </summary>
    public class CreatUserViewModel
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [DisplayName("电话号码")]
        public string userphone { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [DisplayName("密码")]
        public string userpassword { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [DisplayName("新密码")]
        public string newpwd { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [DisplayName("再次输入密码")]
        [Compare("newpwd",ErrorMessage ="两次输入密码不一致")]
        public string aginnewpwd { get; set; }

        [Required(ErrorMessage ="{0}不能为空")]
        [DisplayName("用户昵称")]
        public string username { get; set; }

        public string userid { get; set; }
    }
}